package net.lastcoder.ifserver.web;


import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.websocket.server.WebSocketHandler;
import org.eclipse.jetty.websocket.servlet.WebSocketServletFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * auth: WenYF
 * date: 2017/3/13
 */
public class LocalWebSocketHandler extends WebSocketHandler {
    private static final Logger Log = LoggerFactory.getLogger(LocalWebSocketHandler.class);
    
    @Override
    public void handle(String target, Request baseRequest, HttpServletRequest request
            , HttpServletResponse response) throws IOException, ServletException {
        super.handle(target, baseRequest, request, response);
    }

    @Override
    public void configure(WebSocketServletFactory webSocketServletFactory) {
        webSocketServletFactory.register(ClientWebHandler.class);
    }

}
